﻿using System;

namespace ZyGame
{
    public abstract class ObjectPooled<T> : IDisposable
    {
        public abstract T Create();

        public abstract void Enqueue(T obj);

        public abstract T Dequeue();

        public abstract void Dispose();
    }
}
